<?php
/**
 * Created by PhpStorm.
 * User: jin
 * Date: 2015/8/24
 * Time: 9:48
 */

namespace Home\Model;
use Think\Model;

class ProvinceModel extends Model
{
    public function getProvinceList(){
        return $this->query('SELECT * from hospital_province ORDER BY pro_sort ASC');
    }
    function getProvinceIdByPy($py)
    {
        $provinceInfo = M('province')->where(array('pro_pinyin'=>$py))->find();
        return $provinceInfo;
//        dump($provinceInfo);
    }
}